﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.Text;

namespace HZYProject.Domain
{
    /// <summary>
    /// 练习记录
    /// </summary>
    /// <remarks>
    /// 包含所有的学生自测行为，如每日一练、章节练习等
    /// </remarks>
    public class  PractiseLog
    {
        /// <summary>
        /// 编号
        /// </summary>
        [Key]
        public Guid PractiseLogID { get; set; }


        /// <summary>
        /// 类型
        /// </summary>
        public PractiseLogType Type { get; set; }


        /// <summary>
        /// 学生编号
        /// </summary>
        public Guid StudentID { get; set; }


        /// <summary>
        /// 分数
        /// </summary>
        public decimal Score { get; set; }

        /// <summary>
        /// 创建时间
        /// </summary>
        [DataType(DataType.DateTime)]
        public DateTime CreateTime { get; set; }


    }

    public enum PractiseLogType
    {
        [Display(Name = "自测")]
        Test = 1,
        [Display(Name = "每日一练")]
        EveryDay = 2,
        [Display(Name = "章节练习")]
        Chapter = 3
    }
}
